package net.wicp.tams.component.constant;

/****
 * easyui支持的样式
 * 
 * @author Administrator
 * 
 */
public enum EasyUIStyle {
	defaultSty("default", "默认样式"), black("black", "黑色"), bootstrap("bootstrap",
			"二色"), gray("gray", "灰色"), metro("metro", "metro风格");
	private final String desc;
	private final String value;

	public String getValue() {
		return this.value;
	}

	private EasyUIStyle(String value, String desc) {
		this.desc = desc;
		this.value = value;
	}

	public static final EasyUIStyle valueOfDefault(String name,
			EasyUIStyle defaultvalue) {
		EasyUIStyle retobj = valueOf(name);
		defaultvalue = defaultvalue == null ? defaultSty : defaultvalue;
		return retobj == null ? defaultvalue : retobj;// 没有找到都是折线图
	}
}
